<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

<link rel="stylesheet" type="text/css"
	href="resources/dwz/themes/default/style.css" media="screen">
<link rel="stylesheet" type="text/css"
	href="resources/dwz/themes/css/core.css" media="screen">
 
<script type="text/javascript" src="resources/commons/js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="resources/dwz/js/jquery.cookie.js"></script>
<script type="text/javascript" src="resources/dwz/js/jquery.validate.js"></script>
<script type="text/javascript" src="resources/dwz/js/jquery.bgiframe.js"></script> 
<script type="text/javascript" src="resources/dwz/js/dwz.min.js"></script>
<script src="resources/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>

<script type="text/javascript" src="resources/commons/js/commonsUtil.js"></script>

<style>
	
</style>
<script type="text/javascript">
var nowTime=${timeStamp};
	$(function() {
 		DWZ.init("resources/dwz/dwz.frag.xml", {
			loginTitle:"用户登录",	// 弹出登录对话框
			loginUrl : "login", // 跳到登录页面
			pageInfo : {
				pageNum : "pageNum",
				numPerPage : "numPerPage",
				orderField : "orderField",
				orderDirection : "orderDirection"
			},
			debug : true, // 调试模式 【true|false】
			callback : function() {
				initEnv();
				$("#themeList").theme({
					themeBase : "resources/dwz/themes"
				});
			}
		});
		 
		//加载默认主页
		navTab.init();
		navTab.openTab("main","admin/main",{title:"首页",fresh:true,data:{}});
		setServerDate();
	});
	
	//表单重置方法
	function formReSet(but){
		console.info("clear form");
		$(but).parents("form").find(":input[type='text']").val("");
		$(but).parents("form").find(":input[type='textarea']").val("");
		$(but).parents("form").find(":input.date").val("");
		$.each($(but).parents("form").find("select"),function(index,item){
			$(this).prev("a").eq(0).text($(this).find("option[value='']").text());
			$(this).prev("a").eq(0).val($(this).find("option[value='']").val());
			$(this).find("option[value='']").attr("selected",'selected');
		});
	}
</script>
